{include file=member.header.html}
<script type="text/javascript">
function submitData()
{
	var real_name = $('#real_name').val();
	var gender = $('input:radio:checked').val();
	var birthday= $('#birthday').val();
	var im_qq   = $('#im_qq').val();
	var url = REAL_SITE_URL+"/index.php?app=member&act=profile";
	$.post(url,{real_name:real_name,gender:gender,birthday:birthday,im_qq:im_qq},function(data){
			if(data == true){
				msg("{$lang.handle_ok}");
			setTimeout(function(){
					window.location.href="{url app=member}";
					},1500);
				}  
	},"json");	
}
</script>
<div id="page-my-profile">
	<div class="page-body my-profile add-address mt10">
		<ul class="padding10">
			<li>
                <label>{$lang.gender}: </label>
                <label><input type="radio" name="gender" value="0" {if $profile.gender eq 0}checked="checked"{/if} />{$lang.unknown}  </label>
                <label><input type="radio" name="gender" value="1" {if $profile.gender eq 1}checked="checked"{/if} />{$lang.male}   </label>
                <label><input type="radio" name="gender" value="2" {if $profile.gender eq 2}checked="checked"{/if} />{$lang.female} </label>
            </li>
            <li class="mt20"><input type="text"  class="input" name="real_name" id="real_name" value="{$profile.real_name|escape}" placeholder="{$lang.real_name}"/></li>
            <li>
                <input type="text"  class="input" placeholder="{$lang.birthday}" id="birthday" name="birthday" value="{$profile.birthday|escape}" />
            </li>
            <li>
                <input type="text"   class="input" id="im_qq" name="im_qq" value="{$profile.im_qq|escape}" placeholder="{$lang.im_qq}"/>
            </li>
            <li>
            <div class="btn-box">
            <input type="button" onclick="submitData();" value="{$lang.save_edit}" />
            </div>
		</ul>
	</div>
</div>
{include file=footer.html}
